package com.hmall.service;


import com.hmall.common.PageDTO;
import com.hmall.search.ItemDoc;
import com.hmall.search.RequestParams;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.Map;

@Transactional
public interface ISearchService {

    List<String> suggestion(String key);

    Map<String, List<String>> filters(RequestParams requestParams);

    PageDTO<ItemDoc> list(RequestParams requestParams);

    /**
     * 获取数据库数据更新到ES里面
     *
     * @param id
     */
    void findById(Long id);

    /**
     * 删除ES的文档数据
     *
     * @param id
     */
    void deleteById(Long id);
}
